//
//  MKUIElementTextInputViewController.h
//  MKUI
//
//  Created by 苏尚进 on 2023/7/13.
//  Copyright © 2023 moon. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MKUIListView.h"
#import "MKUIElementViewTextField.h"
#import "MKUIElementViewTextArea.h"

NS_ASSUME_NONNULL_BEGIN

@interface MKUIElementTextInputViewController : UIViewController
@property(nonatomic,readonly) MKUIListView *listView;
@property(nonatomic,readonly) MKUIElementListViewCellTextField *textFieldElement;//单行输入
@property(nonatomic,readonly) MKUIElementListViewCellTextArea *textAreaElement;//多行输入
@property(nonatomic,assign) BOOL allowsMultipleLineText;//是否允许输入多行
@property(nonatomic,strong,nullable) NSString *text;//输入的文本
@property(nonatomic,strong,nullable) NSString *doneButtonText;//完成按钮字符串
@property(nonatomic,copy,nullable) void(^whenChange)(__kindof MKUIElementTextInputViewController *vc,NSString *text);//输入文本变更时的回调
@property(nonatomic,copy,nullable) void(^whenDone)(__kindof MKUIElementTextInputViewController *vc);//输入文本变更时的回调
- (void)reloadData;
@end

NS_ASSUME_NONNULL_END
